package com.group.chat.web;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * author: lida
 * create time: 2020-10-16 23:30
 * description: 创建消息对象 socketMsg
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SocketMsg {

    //  聊天类型    0：群聊，1：单聊.
    private int type;
    //  发送者.
    private String fromUser;
    //  接受者.
    private String toUser;
    //  消息.
    private String msg;
}
